FROM nginx:latest
# nginx监听的端口号
EXPOSE 9013

# 环境变量,nginx静态文件地址
ENV NG_STATIC_FILE_PATH=/usr/share/nginx/html/

# 添加前端页面到容器中
ADD ./ $NG_STATIC_FILE_PATH

# 下载nginx证书文件
RUN mkdir -p /etc/nginx/cert \
    && cd /etc/nginx/cert \
    && curl -O https://global-application-saved.downline.cn/www.shu-pai.com/goods_image/_.downline.cn_bundle.crt \
    && curl -O https://global-application-saved.downline.cn/www.shu-pai.com/goods_image/downline.cn_RSA.key

# 复制nginx配置文件到容器中
COPY nginx.conf /etc/nginx/nginx.conf
